//package com.ruicar.afs.cloud.demo.demo.mq.rabbit.sender;
//
//import com.ruicar.afs.cloud.bizcommon.rules.mapper.AfsRuleInfoMapper;
//import com.ruicar.afs.cloud.common.mq.rabbit.fallback.SendFallBack;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//
//@Slf4j
//public class NotExistsCallBack implements SendFallBack {
//    @Autowired
//    private AfsRuleInfoMapper mapper;
//    @Override
//    public void errorHandler(int code, String exchange, String routeKey, String message) {
//        log.info("-----not-exists-----fail");
//        mapper.selectById("1");
//    }
//
//    @Override
//    public void successHandler(int code, String exchange, String routeKey, String message) {
//        log.info("-----success-----");
//    }
//}
